﻿using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Controls;

namespace YourLastOptionsDialog.Views
{
    /// <summary>
    /// The editor for numeric values.
    /// </summary>
    public partial class NumericEditor : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NumericEditor"/> class.
        /// </summary>
        public NumericEditor()
        {
            // Required to initialize variables
            InitializeComponent();
        }

        [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Event handler is hooked in Xaml.")]
        private void InputTextBox_GotFocus(object sender, RoutedEventArgs e)
        {
            InputTextBox.SelectAll();
        }
    }
}